package org.callcenterkata;

import java.util.List;

import org.callcenterkata.dao.IToolDao;
import org.callcenterkata.dao.Tool;
import org.callcenterkata.dao.ToolDao;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class ToolDisplayAction extends ActionSupport {
	
	private IToolDao toolDao = new ToolDao();
	private List<Tool> tool;

	public List<Tool> getTools() {
		return tool;
	}

	public String execute() throws Exception {
		tool = toolDao.getTools();
		return SUCCESS;
	}

	protected void setToolDao(IToolDao toolDao) {
		this.toolDao = toolDao;
	}
}
